<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input type="hidden" name="type" value="{$type}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-out_name" class="form-control" name="out_name" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-out_phone" class="form-control" name="out_phone" type="text">
        </div>
    </div>

    <div class="goods-spec-many">
        <!-- <label class="control-label col-xs-12 col-sm-2"></label>-->
        <div class="widget-body no-padding">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">添加产品:</label>
                <input type="hidden" name="list" id ='c-relation' size="500" >
                <!--  <div class="col-xs-4 col-sm-4"><input type="text" placeholder="请输入主规格名称" maxlength="5" class="form-control" id="space_name"></div>-->
                <div class="col-xs-12 col-sm-10">
                    <div class="col-xs-1 col-sm-1" style="width: 7%">
                      年份
                    </div>
                    <div class="col-xs-2 col-sm-1" style="width: 10%">
                       品类
                    </div>
                    <div class="col-xs-1 col-sm-1">
                        规格
                    </div>
                    <div class="col-xs-1 col-sm-1">
                        价格
                    </div>
                    <div class="col-xs-1 col-sm-1" style="width: 7%">
                        数量
                    </div>
                </div>
                <div class="col-xs-12 col-sm-10" >
                    <div class="col-xs-1 col-sm-1" style="width: 7%">
                        <input id="space_year" class="form-control"  name="" type="text">
                    </div>
                    <div class="col-xs-1 col-sm-1" style="width: 10%">
                        <input id="space_category" data-source="select/category/index" class="form-control selectpage" data-primary-key="c_id"  data-field="c_title"  name="" type="text">
                    </div>
                    <div class="col-xs-1 col-sm-1">
                        <select name="" id="space_spec" class="form-control" >
                            {foreach $specsList as $item => $val}
                            <option value="{$item}" >{$val}</option>
                            {/foreach}
                        </select>
                    </div>
                    <div class="col-xs-1 col-sm-1">
                        <input id="space_price" class="form-control" name="" type="text">
                    </div>
                    <div class="col-xs-1 col-sm-1" style="width: 7%">
                        <input id="space_num" class="form-control" name="" type="text">
                    </div>
                    <div class="col-xs-3 col-sm-3"><span class="btn btn-primary" id='addskus'>添加</span></div>
                </div>
            </div>
            <div id='space' style="margin-left:17%">
            </div>
            <div>
                <div class="row" >
                    <div class="col-md-12">
                        <table class="table">
                            <thead id="skus_title"></thead>
                            <tbody id="skus_value"></tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-note" class="form-control" name="note" type="text">
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
